<?php /* Smarty version 2.6.19, created on 2008-06-17 19:22:38
         compiled from profile/edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'profile/edit.tpl', 20, false),array('function', 'html_select_date', 'profile/edit.tpl', 43, false),)), $this); ?>
<html>

<head>
    <title></title>
    <link rel="stylesheet" href="/media/css/pro.css" type="text/css" media="screen" />
</head>

<body>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/global_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><br />
<?php if ($this->_tpl_vars['data']['user_avatar']): ?>
    <img src="<?php echo $this->_tpl_vars['data']['user_path']; ?>
/<?php echo $this->_tpl_vars['data']['user_avatar']; ?>
" width="80" align="center" style="margin:0 5 0 1;" />
<?php else: ?><img src="/media/img/face.jpg" width="80" align="center" style="margin:0 5 0 1;" /><?php endif; ?>

<form action="" method="post">
<table border="0" cellpadding="5">
    <tr>
        <td>Username:</td>
        <td>
            <input type="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_login'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" readonly="readonly" />
        </td>
    </tr>
    <tr>
        <td>E-mail:</td>
        <td>
            <input type="text" name="form[mail]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_mail'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
            <span class="error"><?php echo $this->_tpl_vars['error']['mail']; ?>
</span>
        </td>
    </tr>
    <tr>
        <td>Gender:</td>
        <td>
            <select name="form[sex]">
                <option value="" />Your gender
                <option value="male" <?php if ($this->_tpl_vars['data']['user_sex'] == 'male'): ?>selected<?php endif; ?> />Male
                <option value="female" <?php if ($this->_tpl_vars['data']['user_sex'] == 'female'): ?>selected<?php endif; ?> />Female
            </select>
        </td>
    </tr>
    <tr>
        <td>Age:</td>
        <td>
            <?php echo smarty_function_html_select_date(array('selected_month' => ($this->_tpl_vars['month']),'selected_year' => ($this->_tpl_vars['year']),'selected_day' => ($this->_tpl_vars['day']),'start_year' => "-60",'end_year' => "-8"), $this);?>

            <span class="error"><?php echo $this->_tpl_vars['error']['born']; ?>
</span>
        </td>
    </tr>
    <tr>
        <td>Phone number:</td>
        <td>
            <input type="text" name="form[number]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_number'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" readonly="readonly" />
        </td>
    </tr>
    <tr>
        <td>Country/region:</td>
        <td>
            <input type="text" name="form[country]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_country'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
        </td>
    </tr>
    <tr>
        <td>City/other country:</td>
        <td><input type="text" name="form[city]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_city'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
    </tr>
    <tr>
        <td>About yourself:</td>
        <td><input type="text" name="form[description]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['user_description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
    </tr>
    <tr>
        <td></td>
        <td><input type="submit" value="change" /></td>
    </tr>
</table>
</form>

<form action="" method="post">
<table border="0" cellpadding="5">
    <tr>
        <td>Old password:</td>
        <td>
            <input type="password" name="form[password_old]" value="" />
            <span class="error"><?php echo $this->_tpl_vars['error']['password']; ?>
</span>
        </td>
    </tr>
    <tr>
        <td>Password:</td>
        <td>
            <input type="password" name="form[password]" value="" />
            <span class="error"><?php echo $this->_tpl_vars['error']['password']; ?>
</span>
        </td>
    </tr>
    <tr>
        <td>Password again:</td>
        <td><input type="password" name="form[password_again]" value="" /></td>
    </tr>
    <tr>
        <td><input type="submit" name="password" value="change password" /></td>
    </tr>
</table>
</form>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "profile/inc/return.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

</body>

</html>  